package org.jeecg.modules.ws.service.impl;

import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.jeecg.modules.ws.entity.WsYdbg;
import org.jeecg.modules.ws.entity.WsZcfzb;
import org.jeecg.modules.ws.mapper.WsYdbgMapper;
import org.jeecg.modules.ws.service.IWsYdbgService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Date;

/**
 * @Description: 月度报告
 * @Author: jeecg-boot
 * @Date:   2025-04-08
 * @Version: V1.0
 */
@Service
public class WsYdbgServiceImpl extends ServiceImpl<WsYdbgMapper, WsYdbg> implements IWsYdbgService {

    @Override
    public void deleteBySq(String shxydm, String year, String month) {
        LambdaUpdateWrapper<WsYdbg> wrapper = Wrappers.lambdaUpdate(WsYdbg.class);
        wrapper.eq(WsYdbg::getShxydm, shxydm).eq(WsYdbg::getYear, year).eq(WsYdbg::getMonth, month);
        remove(wrapper);
    }
}
